<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">

<title>分配角色</title>
<link rel="stylesheet" type="text/css" href="../style/style.css" />
</head>
<body>

<div id="Content">
  <div style="width:100%; ">
  <div  class="DesktopBlock" id="FUNC00004">
  <div id="Block">
      <div id="BlockHead">
      
    <table border="0" cellspacing="0" cellpadding="0" height="100%" width="80%">
              <tbody>
                <tr valign="center">
                  <td width="5"></td>
                  <td>选择给【${pers.personnel_name?default('')}】分配角色</td> 
                  <td width="22"></td>
                </tr>
              </tbody>
            </table>
        </div>
         <div id="BlockDetail">
         <form action="roleAllot.action" name="roleAllot" method="post">
         <input type="hidden" name="personnel_id" value="${pers.personnel_id?default(0)}">
         <table width="93%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#f9f9f9">
               <tr>
                 <td height="30" align="center"  bgcolor="#EAEAEA" class="linetitle">权限</td>
                 <td height="30" align="center"  bgcolor="#EAEAEA" class="linetitle"><span style="margin-left:5px;">角色名称</span></td>
               </tr>
               <#if roles?exists>
	                <#if roles.size()==0>
		                <tr>
		               <td colspan="2" width="100%" height="30" align="center" bgcolor="#ffffff"><span style="margin-left:5px;">没有可分配的角色！</span></td>               </tr>
		               <tr>
	               <#else>
		               <#list roles as role>
		               <tr>
		                 <td width="16%" height="30" align="center" bgcolor="#ffffff"><input value="${role.id?default(0)}" <#if role.ifchecked==1>checked="checked"</#if> type="checkbox" name="roleIds" />
		                  </td>
		               <td width="84%" height="30" align="center" bgcolor="#ffffff"><span style="margin-left:5px;">${role.role_name}</span></td>               </tr>
		               
		               </#list>
	               </#if>
               <#else>
	               <tr>
	               <td colspan="2" width="100%" height="30" align="center" bgcolor="#ffffff"><span style="margin-left:5px;">没有可分配的角色！</span></td>               </tr>
	               <tr>
               </#if>
                <td colspan="2" bgcolor="#ffffff"><div style="padding-top:10px; margin:0 60px;"><div class="yuding_btn  left">
                  <!-- 按钮  -->
                  <span><span class="xp-b-leftSubmit2"><!-- --></span>
                    <a id="uw_flight_submit_lnk" class="xp-b-submit2" style=" line-height:30px;" href="#" onclick="roleAllot.submit()">分配角色</a> 
                    <span class="xp-b-rightSubmit2"><!-- --></span></span>
                  </div>
                  <div class="yuding_btn">
                    <!--  按钮  -->
                    <span><span class="xp-b-leftSubmit2"><!-- --></span>
                    <a id="uw_flight_submit_lnk" class="xp-b-submit2" style=" line-height:30px;" href="#" onclick="parent.$.fn.colorbox.close();">关闭</a> 
                    <span class="xp-b-rightSubmit2"><!-- --></span></span>
                 </div></div></td>
               </tr>
</table>
</form>
         
         </div>                        
</div>
</div>
</div>
</div>

</body></html>